package com.baizhi.service;

import com.baizhi.entity.Book;
import com.baizhi.entity.Category;

import java.util.List;

public interface BooksService {
    //添加
    public int insertbook(Book book);
    //删除
    public int deletebook(int id);
    //修改
    public int updatebook(Book book);
    //查所有
    public List<Category> selectAllbook();
    //部分删除
    public int deletesbook(List<Integer> ids);
    //分页
    public List<Category> selectCategorysByPage(int offset,int rows);
    //总数
    public int selectToalCount();
    //删除当下的categoryid
    public  int deletecategory(Integer id);
}
